import javax.swing.*;
import java.awt.*;

public class FlowlayoutTest1 extends JFrame {
JPanel jPanel = new JPanel(new FlowLayout());
public FlowlayoutTest1(){
    super("计算");
     Container container = getContentPane();





    container.add(jPanel);
    setSize(400,300);
    setLocationRelativeTo(null);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setVisible(true);

}

    public static void main(String[] args) {
       FlowlayoutTest1 flowlayoutTest1 = new FlowlayoutTest1();
    }


}
